﻿<Window x:Class="SampleStrategies.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:StockSharp.Localization;assembly=StockSharp.Localization"
    xmlns:xaml="http://schemas.stocksharp.com/xaml"
    Title="{x:Static loc:LocalizedStrings.SampleAppFor}" Height="Auto" Width="Auto" SizeToContent="WidthAndHeight">

	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="100" />
			<ColumnDefinition Width="100" />
			<ColumnDefinition Width="100" />
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="10" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition MinHeight="300" />
		</Grid.RowDefinitions>

		<Button x:Name="SettingsBtn" Grid.Column="0" Content="{x:Static loc:LocalizedStrings.Settings}" Click="SettingsClick" />
		<Button x:Name="ConnectBtn" Background="LightPink" Grid.Column="1" Grid.Row="0" Content="{x:Static loc:LocalizedStrings.Connect}" Click="ConnectClick" />
		<Button x:Name="ShowStrategies" Grid.Column="2" Grid.Row="0" Content="{x:Static loc:LocalizedStrings.Strategies}" Click="ShowStrategiesClick" />

		<Grid Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
			</Grid.ColumnDefinitions>

			<Button x:Name="ShowSecurities" Grid.Column="0" Content="{x:Static loc:LocalizedStrings.Securities}" Click="ShowSecuritiesClick" />
			<Button x:Name="ShowPortfolios" Grid.Column="1" Content="{x:Static loc:LocalizedStrings.Portfolios}" Click="ShowPortfoliosClick" />

			<Button x:Name="ShowMyTrades" Grid.Column="2" Content="{x:Static loc:LocalizedStrings.MyTrades}" Click="ShowMyTradesClick" />
			<Button x:Name="ShowOrders" Grid.Column="3" Content="{x:Static loc:LocalizedStrings.Orders}" Click="ShowOrdersClick" />
		</Grid>
		
		<xaml:Monitor x:Name="Monitor" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="4" />
	</Grid>
</Window>